/* ImageView */

#import <Cocoa/Cocoa.h>

@interface ImageView : NSImageView
{
	NSMutableDictionary	*m_nameAttrs;
	NSImage				*m_image;

	BOOL			m_scale;
	NSPoint			m_ptImage;

	NSSize			m_szImage;
	NSString		*m_imageName;
	NSString		*m_imageIndex;
	NSString		*m_imageDate;

	id				delegate;
}

- (void) setImage:(NSImage*) image;
- (void) setImageName:(NSString*) name;
- (void) setImageIndex:(NSString*) index;
- (void) setImageDate:(NSString*) date;
- (void) setScaling:(BOOL) scaling;

- (NSSize) getImageSize;

- (void) setBackgroundColor:(NSColor*) newColor;
- (void) setForegroundColor:(NSColor*) newColor;

- (id) delegate;
- (void) setDelegate: (id) newDelegate;

-(void)mouseDown:(NSEvent *)event;
-(void)mouseUp:(NSEvent *)event;
-(void)mouseDragged:(NSEvent *)event;

@end

// Delegate methods
@interface NSObject (ImageViewDelegate)

- (void) imageView: (ImageView *) imgView  keyDown: (NSEvent *) evt;

@end
